from flask import url_for
from flask_restful import Resource

from restful.api__.session import login_required_current_user_generate
from restful.response import ResponseSuccess


class SystemAllNavUrls(Resource):
    @login_required_current_user_generate
    def get(self,current_user):
        return ResponseSuccess(data={
            "first_page":url_for('page.user_index'),
            "blog_hot_page":url_for('page.blog_hot'),
            'blog_recent_page':url_for('page.blog_recent'),
            'blog_make_friends_page':url_for('page.blog_make_friends'),
            'blog_help_page':url_for('page.blog_help'),
            'blog_trade_page':url_for('page.blog_trade'),
            'blog_my_following_page':url_for('page.blog_my_following'),
            'blog_similar_page':url_for('page.blog_similar'),
        })